<template>
  <table class="table table-bordered table-stripped">
    <!-- 表格标题区域 -->
    <thead>
      <tr>
        <slot name="heade"></slot>
      </tr>
    </thead>
    <!-- 表格主体区域 -->
    <tbody>
      <tr v-for="(item,index) in list" :key="item.id" >
       <slot  name="body" :row='item' :ind='index'></slot>
      </tr> 
    </tbody>
  </table>
</template>

<script>
export default {
  name: "MyTable",
  props: {
    list: Array,
  },
  data() {
    return {

    };
  },
 
 
};
</script>

<style scoped lang="less">
.my-goods-list {
  .badge {
    margin-right: 5px;
  }
}
.dele {
  background-color: rgb(236, 184, 88);
  border: none;
  color: aliceblue;
  height: 35px;
  border-radius: 5px;
}
.dele:hover {
  background-color: rgb(223, 173, 81);
}
</style>
